import service from '@/utils/request'
// @Tags CasCases
// @Summary 创建casCases表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasCases true "创建casCases表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /casCases/createCasCases [post]
export const createCasCases = (data) => {
  return service({
    url: '/casCases/createCasCases',
    method: 'post',
    data
  })
}

// @Tags CasCases
// @Summary 删除casCases表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasCases true "删除casCases表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casCases/deleteCasCases [delete]
export const deleteCasCases = (params) => {
  return service({
    url: '/casCases/deleteCasCases',
    method: 'delete',
    params
  })
}

// @Tags CasCases
// @Summary 批量删除casCases表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除casCases表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casCases/deleteCasCases [delete]
export const deleteCasCasesByIds = (params) => {
  return service({
    url: '/casCases/deleteCasCasesByIds',
    method: 'delete',
    params
  })
}

// @Tags CasCases
// @Summary 更新casCases表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasCases true "更新casCases表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /casCases/updateCasCases [put]
export const updateCasCases = (data) => {
  return service({
    url: '/casCases/updateCasCases',
    method: 'put',
    data
  })
}

// @Tags CasCases
// @Summary 用id查询casCases表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CasCases true "用id查询casCases表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casCases/findCasCases [get]
export const findCasCases = (params) => {
  return service({
    url: '/casCases/findCasCases',
    method: 'get',
    params
  })
}

// @Tags CasCases
// @Summary 分页获取casCases表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取casCases表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casCases/getCasCasesList [get]
export const getCasCasesList = (params) => {
  return service({
    url: '/casCases/getCasCasesList',
    method: 'get',
    params
  })
}
// @Tags CasCases
// @Summary 获取数据源
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casCases/findCasCasesDataSource [get]
export const getCasCasesDataSource = () => {
  return service({
    url: '/casCases/getCasCasesDataSource',
    method: 'get',
  })
}

// @Tags CasCases
// @Summary 不需要鉴权的casCases表接口
// @accept application/json
// @Produce application/json
// @Param data query casesReq.CasCasesSearch true "分页获取casCases表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /casCases/getCasCasesPublic [get]
export const getCasCasesPublic = () => {
  return service({
    url: '/casCases/getCasCasesPublic',
    method: 'get',
  })
}
